package com.trainoo.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zt
 * @Date: 2019/12/16 17:57
 * @Description:
 */
@EnableDiscoveryClient
@SpringBootApplication
public class SpringBootAdminClient {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootAdminClient.class, args);
    }

    @RestController
    static class TestController{
        @GetMapping("/test")
        public String test(){
            System.out.println("this is a test for springboot admin~");
            return "this is a test for springboot admin~~~";
        }
    }
}
